﻿@model List<IMall.Web.Models.ViewModels.HistoryModel>
@{
    ViewBag.Title = "历史订单";
}
<div class="row clearfix">
    <ul class="breadcrumb" style="margin:0;background-color:white">
        <li>
            <a href="~/Home">首页</a>
        </li>
        <li class="active">
            历史订单
        </li>
    </ul>
</div>
<table class="table table-striped" >
    <tr>
        <td style="width:50%">商品名称</td>
        <td style="width:10%">单价</td>
        <td style="width:10%">数量</td>
        <td style="width:10%">成交价</td>
        <td style="width:20%">状态</td>
    </tr>
</table>

@foreach (var item in Model)
{
    <table class="table table-striped"  style="border:1px solid #E0E0E0">
        <tr>
            <td>@item.CreatedTime</td>
            <th style="text-align:right">订单号:</th>
            <td colspan="3"> @item.Id</td>
        </tr>
        <tr>
            <td style="width:50%">
            <div>@item.CommodityName</div>
            </td>
            <td style="width:10%">￥@item.Price</td>
            <td style="width:10%">1 件</td>
            <td style="width:10%">@item.Price 元</td>
            <td style="width:20%">
                <div>@item.StateText</div>
                <div><a href="~/Home/Settlement?id=@item.Id">订单信息</a></div>
            </td>
        </tr>
    </table>
}
